<?php /* Smarty version Smarty 3.1.0, created on 2011-10-01 17:52:32
         compiled from "/projects/newmasmedio/templates/columnas.tpl" */ ?>
<?php /*%%SmartyHeaderCode:15944829664e87a7c0a305e2-20358116%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '84ef1ed7dd40e899b3d8fd39d8ef152f795606f1' => 
    array (
      0 => '/projects/newmasmedio/templates/columnas.tpl',
      1 => 1317513143,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15944829664e87a7c0a305e2-20358116',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'arrMes' => 0,
    'ano' => 0,
    'mes' => 0,
    'arrNotas' => 0,
    'nota' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.0',
  'unifunc' => 'content_4e87a7c0adb2f',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4e87a7c0adb2f')) {function content_4e87a7c0adb2f($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/usr/local/lib/Smarty_3_1_0/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ('../templates/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div id="frmColumnas">
<form action="/columnas/" method="post" name="frm1">
	<h3>Buscar Columnas por Fecha:</h3>
    <label for="mes">Mes: 
    	<select name="mes">
    		<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['name'] = 'mes';
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'] = (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['loop'] = is_array($_loop=13) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['mes']['total']);
?>
			<option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['mes']['index'];?>
" 
			<?php if (smarty_modifier_date_format(time(),"%m")==$_smarty_tpl->getVariable('smarty')->value['section']['mes']['index']){?>selected="selected"<?php }?>>
				<?php echo $_smarty_tpl->tpl_vars['arrMes']->value[$_smarty_tpl->getVariable('smarty')->value['section']['mes']['index']];?>

			</option>
			<?php endfor; endif; ?>
		</select>
	</label>
	<label for="ano">A&ntilde;o: 
    	<select name="ano">
    		<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['name'] = 'ano';
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'] = (int)2010;
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['loop'] = is_array($_loop=smarty_modifier_date_format(time(),"%Y")+1) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['ano']['total']);
?>
			<option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['ano']['index'];?>
" 
			<?php if (smarty_modifier_date_format(time(),"%Y")==$_smarty_tpl->getVariable('smarty')->value['section']['ano']['index']){?>selected="selected"<?php }?>>
				<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['ano']['index'];?>

			</option>
			<?php endfor; endif; ?>
		</select>
	</label>						
	<input type="submit" name="submit1" value="Ver Columnas" />
</form>
</div>
<div id="resultsColumnas">
<h2 id="seccion">Columnas de Rodrigo Sotelo <?php if ($_smarty_tpl->tpl_vars['ano']->value!=''){?>de <?php echo $_smarty_tpl->tpl_vars['arrMes']->value[$_smarty_tpl->tpl_vars['mes']->value];?>
 del <?php echo $_smarty_tpl->tpl_vars['ano']->value;?>
<?php }?></h2>
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="4">
	<tr class="resumenH">
    	<td width="25%">Fecha</td>
        <td width="75%">T&iacute;tulo</td>                    
	</tr>
	<?php  $_smarty_tpl->tpl_vars['nota'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['arrNotas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['nota']->key => $_smarty_tpl->tpl_vars['nota']->value){
$_loop = true;
?>
		<tr>
			<td class="resumenHora"><?php echo $_smarty_tpl->tpl_vars['nota']->value['fechaPublicacion'];?>
</td>
			<td class="resumenTitulo"><a href='/nota/<?php echo $_smarty_tpl->tpl_vars['nota']->value['notaid'];?>
'><?php echo $_smarty_tpl->tpl_vars['nota']->value['titulo'];?>
</a><p><?php echo $_smarty_tpl->tpl_vars['nota']->value['descripcion'];?>
</p></td>
		</tr>
	<?php } ?>
</table>
</div>
<?php echo $_smarty_tpl->getSubTemplate ('../templates/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>